<?php
session_start();
require("../../../weblinx/weblinx.php");
require("../../Classes/Setter.php");

require("../../Classes/Admin/User.php");

require("../../Forms/UserServices/FrmAccess.php");
require("../../Forms/Invitados/FrmInvitados.php");
require("../../Forms/Admin/FrmAdmin.php");
require("../../Forms/UserServices/FrmUserServices.php");
require("../../Forms/UserServices/FrmUserEdit.php");

$setter=new Setter("../../Config");

$page=new Page();
$page->setCss("../../Themes/".$setter->getTheme()."/skin.css");

$page->start();
$page->headEnd();
$page->bodyStart();


if(isset($_GET['start'])){
	$frmAccess=new FrmAccess();
	$frmAccess->show();	
}

if(isset($_GET['Admin'])){
	$frmAdmin=new FrmAdmin();
	$frmAdmin->show();
}
else if(isset($_GET['Invitado'])){
	$frmInvitados=new FrmInvitados();
	$frmInvitados->show();
}


//--------------------------------------

else if(isset($_POST['close'])){
	session_destroy();
	$frmAccess=new FrmAccess();
	$frmAccess->show();
}
else if(isset($_GET['userConf'])){
	$user=new User();
	$user->cargar($_SESSION['idUser']);
	$frmUserEdit=new frmUserEdit($user);
	$frmUserEdit->show();
}
$page->end();

?>
